import { ChatOpenAI, OpenAIClient } from "@langchain/openai";

// const model = new ChatOpenAI({
//   model: "deepseek/deepseek-chat-v3-0324:free",
//   apiKey:
//     "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",
//   baseURL: "https://openrouter.ai/api/v1",
// });

const model = new ChatOpenAI({
  // modelName: "deepseek/deepseek-chat-v3-0324:free",
  modelName: "qwen/qwq-32b:free",
  temperature: 0.8,
  streaming: true,
  apiKey:
    "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",
  baseURL: "https://openrouter.ai/api/v1",
});

(async () => {
  const res = await model.invoke("Hello, world!");
  console.log("res", res);
})();
